#!/usr/local/bin/python2.5

_Copyright = "Copyright @ 2010 Michael P. Reilly. All rights reserved."

_SCM_ID = "$Id: index.py 60 2010-11-28 04:22:38Z arcege@gmail.com $"

import os
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

template_dir = os.path.join(os.path.dirname(__file__), 'templates')

class IndexHtml(webapp.RequestHandler):
    def get(self):
        path = os.path.join(template_dir, 'index.tmpl')
        self.response.out.write(
            template.render(path, {})
        )

def main():
    application = webapp.WSGIApplication(
        [
            ('/', IndexHtml),
            ('/index.html', IndexHtml),
        ]
    )
    wsgiref.handlers.CGIHandler().run(application)

if __name__ == '__main__':
    main()

